<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
<!--    <script src="https://cdn.jsdelivr.net/npm/@unocss/runtime"></script>-->
</head>
<body>
    <div class="main">
        <img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/202505281708491748423329297b426c3303c.png" alt="" class="top-circuit-img">
        <div class="content-text">
            <p>Jingle Mining - Order No. {{order_info.order_no}} confirmed</p>
            <p>Dear {{user_name}},</p>
            <p class="no_gap">Jingle Mining Order No. {{order_info.order_no}}</p>
            <p class="no_gap">Thank you for your order!</p>
        </div>
        <div class="content-text">
            <p class="section-title">Order summary</p>
            {% for item in order_info.list %}
            <div class="order-item" >
                <img src="{{item.thumb}}" alt="{{item.name}}" class="product-image">
                <div class="product-name">{{item.name}}</div>
                <div class="product-quantity">*{{item.quantity}}</div>
                <div class="product-price">${{item.price_selected_currency}}</div>
            </div> 
            {% endfor %}
            <div class="order-summary">
                <p class="summary-item">Subtotal: ${{order_info.product_total_amount}}</p>
                {% if order_info.order_category == 'order' %}
                {% if order_info.delivery_method == 1 %}
                <p class="summary-item shipping" style="font-weight: bold">Shipping: ${{order_info.logistics_fee}}</p>
                {% endif %}
                {% endif %}
                <div class="summary-divider"></div>
                <p class="total-amount">Total: ${{order_info.total_amount}}</p>
            </div>
        </div>

        {% if order_info.order_category == 'order' %}
        <div class="content-text no-padding-top">
            <p class="section-title">Customer information</p>
            <div class="customer-info">
                {% if order_info.delivery_method == 0 %}
                    <div class="address-section">
                        <p class="address-title">Pickup info</p>
                        <p class="address-line">{{order_info.pickup_name}}</p>
                        <p class="address-line">{{order_info.pickup_phone}}</p>
                        <p class="address-line">{{order_info.pickup_passport}}</p>
                        <p class="address-line">{{order_info.pickup_vehicle}}</p>
                    </div>
                {% else %}
                    <div class="address-section">
                        <p class="address-title">Shipping address</p>
                        <p class="address-line">{{order_info.first_name}} {{order_info.last_name}}</p>
                        <p class="address-line">{{order_info.address}} {{order_info.address2}}</p>
                        <p class="address-line">{{order_info.city_name}} {{order_info.state}}</p>
                        <p class="address-line">{{order_info.country_name}}</p>
                    </div>
                    <div class="address-section">
                        <p class="address-title">Billing address</p>
                        <p class="address-line">{{order_info.billing_first_name}} {{order_info.billing_last_name}}</p>
                        <p class="address-line">{{order_info.billing_address}} {{order_info.billing_address2}}</p>
                        <p class="address-line">{{order_info.billing_city_name}} {{order_info.billing_state}}</p>
                        <p class="address-line">{{order_info.billing_country_name}}</p>
                    </div>
                {% endif %}
            </div>
        </div>
        {% endif %}
       
       

    
        <div class="content-text no-padding-top">
            <p class="section-title">Payment method</p>
            <p>{{order_info.pay_method_name}}</p>
            <p class="no_gap">Yours Sincerely</p>
            <p class="no_gap">Jingle Mining</p>
        </div>

        <div class="middle">
            <a href="https://www.jinglemining.asia/account/orders" class="cart-button">VIEW YOUR ORDER</a>
            <a href="https://www.jinglemining.asia/" class="visit-store-button">VISIT OUR STORE</a>
            <div class="social_icon">
                <a href="https://www.instagram.com/jinglemining_official"><img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/2025052817100217484234026947505b7596a.png" alt="Telegram Icon"></a>
                <a href=" https://www.facebook.com/JingleMining"><img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/202505281709121748423352834865d55fd39.png" alt="Facebook Icon"></a>
                <a href="https://x.com/JingleMining"><img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/202505281710281748423428390a691251ec4.png" alt="X Icon"></a>
                <a href="https://www.youtube.com/@JINGLEMINING"><img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/20250528171120174842348093412e4aaf95f.png" alt="YouTube Icon"></a>
            </div>
        </div>

        <div>
            <p class="contact-info">If you have any questions, reply to this email or contact us at <a class="link_a" href="mailto:contact@jinglemining.com">contact@jinglemining.com</a></p>
        </div>
        <img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/202505281708131748423293510f7c35aa20e.png" alt="Jingle Mining Logo" class="bottom-logo">
<!--        <p class="bottom-text">JINGLE MINING</p>-->
        <img src="https://mx-jinglemining.oss-us-west-1.aliyuncs.com/customer/202505/28/202505281708491748423329297b426c3303c.png" alt="Bottom Circuit Board" class="bottom-circuit-img">

    </div>
</body>
<style>
    .main {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .top-circuit-img {
        width: 100%;
        display: block;
    }
    .content-text {
        text-align: left;
        padding: 30px;
    }
    .no-padding-top {
        padding-top: 0;
    }
    .no_gap {
        margin: 0;
    }
    .section-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px;
    }
    .order-item {
        display: flex;
        align-items: center;
        border-bottom: 1px solid;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    .product-image {
        width: 60px;
        height: auto;
        margin-right: 15px;
        border-radius: 3px;
        flex-grow: 1;
    }
    .product-name {
        flex-grow: 1;
    }
    .product-quantity {
        flex-grow: 1;
        margin-left: 15px;
    }
    .product-price {
        flex-grow: 1;
        margin-left: 15px;
        font-weight: bold;
        text-align: right;
    }
    .order-summary {
        text-align: right;
        margin-top: 10px;
        padding-top: 10px;
    }
    .summary-item {
        margin: 5px 0;
    }
    .summary-item.shipping {
        padding-bottom: 15px;
    }
    .summary-divider {
        border-bottom: 1px solid;
        float: right;
        width: 180px;
    }
    .total-amount {
        margin: 15px 0 0 0;
        font-size: 18px;
        font-weight: bold;
    }
    .customer-info {
        /*display: flex;*/
        /*justify-content: space-between;*/
    }
    .address-section {
        width: 48%;
    }
    .address-title {
        font-weight: bold;
        margin-bottom: 5px;
    }
    .address-line {
        margin: 0;
    }
    .middle {
        text-align: center;
        border-bottom: 1px solid gray;
        padding-bottom: 20px;
    }
    .cart-button, .visit-store-button {
        background-color: #f0a830;
        color: black;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        text-decoration: none;
        display: inline-block;
        font-weight: 700;
    }
    .cart-button {
        margin-right: 10px;
    }
    .social_icon {
        display: flex;
        gap: 30px;
        justify-content: center;
        margin-top: 38px;
        padding: 0 30px;
    }
    .social_icon img {
        width: 30px;
        margin: 0 5px;
    }
    .contact-info {
        color: #888;
        font-size: 14px;
        margin-top: 30px;
    }
    .link_a {
        text-decoration: underline;
        color: black;
        font-weight: 600;
    }
    .bottom-logo {
        display: block;
        margin: 20px auto;
        width: 150px;
    }
    .bottom-circuit-img {
        width: 100%;
        display: block;
        margin-top: 30px;
        transform: rotate(180deg);
    }
    body {
        font-family: sans-serif;
    }
</style>
</html>
